from datetime import date
from django.http import HttpResponse
from django.template import RequestContext
from django.shortcuts import render
from .models import Products
# Create your views here.

def products(request):
	queryset = Products.objects.all()
	return render(request,'results.html',{'products':queryset})

def product_single(request,slug):
	queryset=Products.objects.get(slug=slug)
	return render(request,'product.html',{'product':queryset})

def home(request):
	return render(request,'home.html',{})